package com.iris.live.services.data.models;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * Created by ThinkPad on 2016/9/21.
 */
public class 财务详单ModelPK implements Serializable {
    private String 许可;
    private String vin;

    @Column(name = "许可")
    @Id
    public String get许可() {
        return 许可;
    }

    public void set许可(String 许可) {
        this.许可 = 许可;
    }

    @Column(name = "VIN")
    @Id
    public String getVin() {
        return vin;
    }

    public void setVin(String vin) {
        this.vin = vin;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        财务详单ModelPK that = (财务详单ModelPK) o;

        if (许可 != null ? !许可.equals(that.许可) : that.许可 != null) return false;
        if (vin != null ? !vin.equals(that.vin) : that.vin != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = 许可 != null ? 许可.hashCode() : 0;
        result = 31 * result + (vin != null ? vin.hashCode() : 0);
        return result;
    }
}
